package rolesystem.jade;


import java.io.Serializable;

/**
 * This class represents a command directed to the server agent.
 */
public class RoleCommand implements Serializable
{
	/**
	 * Name of this command.
	 */
	private String name;

	/**
	 * Parameters of this command.
	 */
	private Serializable[] parameters;


	/**
	 * Constructor with no arguments, for serializability.
	 */
	private RoleCommand()
	{
	}

	
	/**
	 * @param name Name of this command.
	 * @param parameters Parameters of this command.
	 */
	public RoleCommand(String name, Serializable[] parameters)
	{
		this.name=name;
		this.parameters=parameters;
	}


	/**
	 * Returns the name of this command.
	 * @return The name of this command.
	 */
	public String getName()
	{
		return name;
	}


	/**
	 * Returns the parameters of this command.
	 * @return The parameters of this command.
	 */
	public Serializable[] getParameters()
	{
		return parameters;
	}
}
